﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Windows.Forms;
using DAO;

namespace TAM_SPORT
{
    public partial class FormBase : Form
    {
        public FormBase()
        {
            InitializeComponent();
            try
            {
                pnHeader.BackgroundImage = new Bitmap(@"Resources\header.jpg");
                lblHeader.Text = SqlHelper.readConfigFile("Club Name");
            }
            catch (Exception ex)
            {
                Console.Write(ex.ToString());
            }
        }

        public void setBackgoundHeader()
        {
            pnHeader.BackgroundImage = new Bitmap(@"Resources\header.jpg");
        }

    }
}
